<li class="dropdown messages-menu">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
        <i class="fa fa-envelope-o"></i>
        {% if pagination.count > 0 %}
            <span class="label label-success">{% if pagination.totalItemCount < 100 %}{{ pagination.totalItemCount }}{% else %}99+{% endif %}</span>
        {% endif %}
    </a>
    <ul class="dropdown-menu">
        <li class="header">你有<b>{{ pagination.totalItemCount }}</b>条新留言</li>
        <li>
            <ul class="menu">
                {% for item in pagination.items %}
                    <li>
                        <a href="{{ path('admin_feedback_show', {id:item.id}) }}">
                            <h4 style="margin-left: 0px; font-size: 13px; font-weight: normal; margin-bottom: 5px">
                                {{ item.nickname }}
                                <small><i class="fa fa-clock-o"></i> {{ item.createdAt|ago }}</small>
                            </h4>
                            <p style="margin-left: 0px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{ item.content }}</p>
                        </a>
                    </li>
                {% endfor %}
            </ul>
        </li>
        <li class="footer"><a href="/admin/feedback/list?filter[status][type]=&filter[status][value]=0">查看所有</a></li>
    </ul>
</li>